package com.practice.service.impl;

import com.practice.dto.MenuDTO;
import com.practice.entity.UserEntity;
import com.practice.mapper.MenuMapper;
import com.practice.mapper.UserMapper;
import com.practice.service.MenuService;
import com.practice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author KunxianLi
 * Date 2020/7/18 15:24
 * Version 1.0
 **/
@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<MenuDTO> getMenusByUserId(Long userId) {

        return menuMapper.getMenusByUserId(userId);
    }
}
